package com.thingsgrid.basicInterface.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotBlank;

/**
 * 实体类
 *
 * @author BladeX
 * @since 2019-08-10
 */
@Data
@TableName("blade_basic_interface_type")
@ApiModel(value = "BasicInterfaceType对象", description = "BasicInterfaceType对象")
public class BasicInterfaceType implements Serializable {

	private static final long serialVersionUID = 1L;
	@TableId(value = "id", type = IdType.ID_WORKER)
	@JsonSerialize(using = ToStringSerializer.class)
	private Long id;
	/**
	* 接口类型描述
	*/
	@ApiModelProperty(value = "接口类型描述")
	private String typeDescription;
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm")
	@TableField("type_create_Time")
	private Date typeCreateTime;
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm")
	private Date typeUpdateTime;

	/**
	* 接口类型名字
	*/
	@ApiModelProperty(value = "接口类型名字")
	@NotBlank
	private String typeName;

	/**
	 * 接口大类 0为功能组， 1为权限包
	 */
	@ApiModelProperty(value = "类型分类")
	private String category;

	@TableLogic
	private Integer isDiscard;
}
